<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:import url="/top.do"></c:import>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="content">
					<p id="whereami">
						<html:link action="/main.do">首页</html:link>-我的申请单
				
					</p>
<!-- 分页功能 start -->
<html:link action="/myAskList.do?pid=${pid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/myAskList.do?pid=${pid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/myAskList.do?pid=${pid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}

<!-- 分页功能 end -->
					
					
					<table class="table">
						<tr class="table_header">
							<td>申请单名称</td>
							<td>申请时间</td>
							<td>审核状态</td>
							<td>审核结果</td>
							<td>审核意见</td>
							
						</tr>
						<c:forEach items="${datas}" var="data">
							<tr class= "row1">
							<td>${data.name}</td>
							<td>${data.askDate}</td>
							<td>${data.step}/ ${fn:length(data.workFlow.verifyGroups) }</td>
							<td>
							<c:if test="${data.isEnd==true}">
								<c:if test="${data.isSuccess!=false}">
									<font color=red>申请单成功</font>
								</c:if>
								<c:if test="${data.isSuccess==false}">
									<b>申请单失败</b>
								</c:if>
							</c:if>
							<c:if test="${data.isEnd!=true}">
							审核未结束
							</c:if>
							</td>
							<td>
								<c:forEach items="${data.opinions}" var="v">
									审批者：${v.verifyUser.username },意见：${v.content}<br/>
								</c:forEach>
							</td>
							
						</tr>
						</c:forEach>
					</table>
<!-- 分页功能 start -->
<html:link action="/myAskList.do?pid=${pid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/myAskList.do?pid=${pid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/myAskList.do?pid=${pid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}

<!-- 分页功能 end -->
					
				<p></p>
				</div>
			</div>
	
		</div>
	</body>
</html>
<c:import url="/foot.do"></c:import>